#pragma once
#include "yzrutil.h"
#include "OutputStream.h"


namespace yzrilyzr_io{
	ECLASS(FilterOutputStream, public OutputStream){
	protected:
	OutputStream *output=nullptr;
	public:
	FilterOutputStream(OutputStream & s);
	~FilterOutputStream();
	void write(int32_t b)override;
	void write(const yzrilyzr_array::ByteArray & b)override;
	void write(const yzrilyzr_array::ByteArray & b, u_index off, u_index len)override;
	void flush()override;
	void close()override;
	};
}